@import org.scalaexercises.exercises.utils.StringUtils._
@(title: String, description: String, config: play.api.Configuration)(implicit request: RequestHeader)

@baseUrl = @{ config.getOptional[String]("application.url").getOrElse("https://www.scala-exercises.org") }

<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")" />
<link rel="canonical" href="@baseUrl@request.uri" />

<title>@title.humanizeUnderscore</title>
<meta name="description" content="@description.humanizeUnderscore">
<meta name="author" content="47 Degrees">
<meta property="og:image" content="@baseUrl@routes.Assets.at("images/poster.png")"/>
<meta property="og:title" content="@title.humanizeUnderscore"/>
<meta property="og:site_name" content="@config.getOptional[String]("application.name").getOrElse("Scala Exercises")"/>
<meta property="og:url" content="@baseUrl@request.path"/>
<meta property="og:type" content="website" />
<meta property="og:description" content="@description.humanizeUnderscore"/>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="@baseUrl@routes.Assets.at("images/poster.png")" />
<meta name="twitter:site" content="@config.getOptional[String]("application.twitter").getOrElse("@scala-exercises")">

  <!-- CSS -->
<link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")" />
  <!-- Font-Awesome -->
<script src="https://kit.fontawesome.com/ca2f98aa9e.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
